<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
@html_name: 03对象方法扩展
@description: The past cannot be redeemed, the future can be changed.
@author: Jason Black
@create: 2023/6/27 19:06:07
-->
<script type="text/javascript">
    const STUDENT  = {
        name:"Jason Black",
        hobby:['basketball','football','running','swimming'],
        job:['Java','前端','全栈开发']
    }
    // 返回对象的键
    console.log('keys ==> ',Object.keys(STUDENT))
    // 返回对象的值
    console.log('values ==> ',Object.values(STUDENT))
    // 把对象转化为二维数组
    console.log('entries ==> ',Object.entries(STUDENT))
    let map = new Map(Object.entries(STUDENT))
    console.log(map)
    console.log(map.get("name"))
    // 返回对象的描述对象
    console.log(Object.getOwnPropertyDescriptors(STUDENT))
</script>
</body>
</html>